import React from 'react';
import 'css/default.css';
import 'css/App.css';
import 'css/Login.css';
import  'css/index.css'
import Head from "./component/index/Head";
import Background from "./component/index/Background";
import IndexContent from "./component/index/IndexContent";
import LoginOrRegister from "./component/index/LoginOrRegister";
import {BrowserRouter as Router, Route, Link} from 'react-router-dom'
export default class App extends React.Component {



  isLogin(){
    return false;
  }


  renderLogin(){

    if (this.isLogin()){
      return <div className='index'>

      </div>
    }else{
      return <div className='index'>
        <Background/>
        <Router>
          <Head/>
          <div>
            <Route path="/"  />
            <Route path="/all" exact component={IndexContent}/>
            <Route path="/login" exact component={LoginOrRegister}/>
          </div>
        </Router>
      </div>
    }
  }


  render() {
    return this.renderLogin();
  }
}




